home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4882 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: localtime
  5. Date: Wed, 07 Feb 96 14:04:30 GMT
  6. Organization: none
  7. Message-ID: <823701870snz@genesis.demon.co.uk>
  8. References: <61VnNPt6nTB@softsite.co.at> <4eqr64$ofs@linus.mitre.org>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4eqr64$ofs@linus.mitre.org> jrv@mitre.org "Jim Van Zandt" writes:
  15.  
  16. >wsog@softsite.co.at (Walter Sommergruber) writes:
  17. >>Can I assume "tm_year+1900 = real year" will work also after the
  18. >>year 2000 ?
  19. >
  20. >Yes!  It should work until at least 2034 (2^31 seconds after 1/1/1970).
  21.  
  22. In some sense it should work up to year 34667. That a time_t represents
  23. time in seconds after 1/1/1970 is just a convention on your particular
  24. platform. Other platforms may use different representation (e.g. holding
  25. time values in long doubles). The C language only requires that time_t is
  26. an arithmetic (integer or floating point) type.
  27.  
  28. -- 
  29. -----------------------------------------
  30. Lawrence Kirby | fred@genesis.demon.co.uk
  31. Wilts, England | 70734.126@compuserve.com
  32. -----------------------------------------
  33.